package org.leo.dm.common.exception;

/**
 * 
 * Created on 2016年2月17日
 * <p> 
 * Description 异常类型枚举
 * <p> 
 * Copyright neusoft (c) 2015 .
 * 
 * @author xiao_h 
 *
 */
public enum DpExceptionCodeEnum {

	SYSTEM_ERROR("DPE-001", "系统错误"), 
	BUSINESS_ERROR("DPE-002", "业务错误"), 
	PLUGIN_ERROR("DPE-003", "插件错误"), 
	COMPOMENT_ERROR("DPE-004", "组件错误"), 
	PARAM_ERROR("DPE-005", "参数错误");

	private String code;
	private String msg;

	/**
	 * @param code
	 * @param msg
	 */
	private DpExceptionCodeEnum(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	/**
	 * @return code
	 */
	public String getCode() {
		return code;
	}
	
	/**
	 * @return msg
	 */
	public String getMsg() {
		return msg;
	}
}
